home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2002 #9 / K-CD-9-2002.ISO / Freedom Force / data1.cab / System_Files / regress.py < prev    next >
Encoding:
Python Source  |  2002-03-21  |  484 b   |  25 lines

  1. #
  2. # regress module
  3. #
  4.  
  5. import ff
  6. import js
  7. import event
  8.     
  9. class Regression:
  10.     def __init__(self):
  11.         self.cmdList = []
  12.         
  13.     def init(self, cmds):
  14.         self.cmdList = cmds
  15.         for cmd, arg1, arg2, timeout in self.cmdList:
  16.             js.Command_AddFuture(cmd, timeout, arg1, arg2)
  17.             print "command %d (%s, %s) @ %f" % (cmd, arg1, arg2, timeout)
  18.  
  19. RegressionMgr = Regression()
  20.     
  21. def init(cmds):
  22.     RegressionMgr.init(cmds)
  23.  
  24.  
  25.